package com.coda.service.impl;

import com.coda.mapper.CommentReplyMapper;
import com.coda.pojo.CommentReply;
import com.coda.service.CommentReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 回复用户评论实现类
 */
@Service
public class CommentReplyServiceImpl implements CommentReplyService {

    @Autowired
    private CommentReplyMapper commentReplyMapper;

    /**
     * 回复评论
     * @param reply
     * @return
     */
    @Override
    public int commentReply(CommentReply reply) {
        return commentReplyMapper.commentReply(reply);
    }

    /**
     * 点赞
     * @return
     */
    @Override
    public int upvote(Integer id) {
        return commentReplyMapper.upvote(id);
    }
}
